package algorithm.sort;

import java.util.Arrays;

/**
 * @ClassName : data_structure.TestSort.TestCircle
 * @Description : 类描述
 * Created by cyd on 2021-02-21 11:08:59
 */
public class TestCircle {
    public static void main(String[] args) {
        int[] arr = new int[]{1, 2, 3, 4, 5};
        int j = arr.length - 1;
        while (j > 0) {
            arr[j] = arr[j - 1];
            j--;
        }
        arr[0] = 0;
        System.out.println(Arrays.toString(arr));
    }
}
